<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.infodms.dms.common.Constant"%>
<%@taglib uri="/jstl/cout" prefix="c"%>
<%
	String contextPath = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="${contextPath}/common/jsp_head_new.jsp" />
<script type="text/javascript">
	function doInit(){
		loadcalendar();   
	}
	function txtClr(valueId) {
		document.getElementById(valueId).value = '' ;
	}
</script>
<title>实销退车审核查询</title>
</head>
<body onunload='javascript:destoryPrototype();'> 
<div class="wbox">
	<div class="navigation"><img src="<%=contextPath%>/img/nav.gif" />&nbsp;当前位置：  整车销售 &gt; 客户信息管理 &gt; 实销退车审核查询</div>
	<form id="fm" name="fm" method="post">
		<input type="hidden" name="curPage" id="curPage" value="1" />
		<input type="hidden" id="dlrId" name="dlrId" value="" />
		<table class="table_query" border="0">
		<tr>
				<td width="10%" class="tblopt"><div align="right">VIN：</div></td>
				<td width="20%" >
      				<textarea name="vin" cols="18" rows="3" ></textarea>
    			</td>
    			 <td  width="10%"  align="right">状态：</td>
		      	<td   width="20%"   align="left">
					<script type="text/javascript">
						genSelBoxExp("status",<%=Constant.RETURN_CHECK_STATUS%>,"",true,"short_sel",'',"false",'');
					</script>
				</td>
    				<td  width="10%" align="right">选择经销商：
    			</td>
    			<td width="20%"   align="left"><input type="text" class="middle_txt" style="width:100px" name="dealerCode" id="dealerCode" size="15" value=""/>
    			<input name="button2" type="button" class="mini_btn" onclick="showOrgDealer('dealerCode', '', 'true', '', 'true');" value="..." />
    			<input type="button" class="normal_btn" onclick="txtClr('dealerCode');" value="清 空" id="clrBtn" /></td>
		</tr>
		<tr>
				<!--<td align="right">选择业务范围：</td>
				<td><select name="areaId" class="short_sel">
					<c:forEach items="${areaList}" var="po">
						<option value="${po.AREA_ID}">${po.AREA_NAME}</option>
					</c:forEach>
				</select>
				<input type="hidden" name="dealerId" id="dealerId" />
				<input type="hidden" name="area_id" id="area_id" value="" /></td>-->
				<td  width="10%"  align="right">选择基地：</td>
		      	<td   width="20%"   align="left">
		      		<select name="entity" id="entity" class="short_sel">
		      			<option value="">--请选择--</option>
			      		<c:forEach var="entityList" items="${entityList }">
			      			<option value="${entityList.PRODUCE_BASE }">${entityList.CODE_DESC }</option>
			      		</c:forEach>
			      	</select>
				</td>
				<td  width="10%"  align="right">实销日期：</td>
		      	<td   width="20%"   align="left">
		      	<div align="left">
	            		<input name="salstartDate" id="t1" value="" type="text" class="short_txt" datatype="1,is_date,10" group="t1,t2" hasbtn="true" callFunction="showcalendar(event, 't1', false);" />
	            		&nbsp;至&nbsp;
	            		<input name="salendDate" id="t2" value="" type="text" class="short_txt" datatype="1,is_date,10" group="t1,t2" hasbtn="true" callFunction="showcalendar(event, 't2', false);" />
            		</div>
		      	</td>
				<td width="10%" align="right">审核日期：</td>
				<td  width="20%"   align="left">
				<div align="left">
	            		<input name="checkstartDate" id="t3" value="" type="text" class="short_txt" datatype="1,is_date,10" group="t1,t2" hasbtn="true" callFunction="showcalendar(event, 't3', false);" />
	            		&nbsp;至&nbsp;
	            		<input name="checkendDate" id="t4" value="" type="text" class="short_txt" datatype="1,is_date,10" group="t1,t2" hasbtn="true" callFunction="showcalendar(event, 't4', false);" />
            		</div>
            	</td>
		</tr>
		<tr><td colspan="5" align="right"><input type="button" class="normal_btn" onclick="__extQuery__(1)" value="查 询" id="queryBtn" /> </td>
		<td width="20%"></td>
		 </tr>
		</table>
		<jsp:include page="${contextPath}/queryPage/orderHidden.html" />
	</form>
	<jsp:include page="${contextPath}/queryPage/pageDiv.html" />
</div>
<script type="text/javascript" >
	var myPage;
	
	var url = "<%=contextPath%>/sales/customerInfoManage/SalesVehicleReturn/queryReturnCheckList.json?COMMAND=1";
	
	var title = null;
	var columns = [
				{header: "车系代码", dataIndex: 'SERIES_CODE', align:'center'},
				{header: "车系名称", dataIndex: 'SERIES_NAME', align:'center'},
				{header: "车型代码", dataIndex: 'MODEL_CODE', align:'center'},
				{header: "车型名称", dataIndex: 'MODEL_NAME', align:'center'},
				{header: "VIN", dataIndex: 'VIN', align:'center'},
				{header: "经销商", dataIndex: 'DEALER_SHORTNAME', align:'center'},
				{header: "实销时间", dataIndex: 'SALES_DATE', align:'center'},
				{header: "退车申请时间", dataIndex: 'REQ_DATE', align:'center'},
				{header: "退车原因", dataIndex: 'RETURN_REASON', align:'center'},
				{header: "审核时间", dataIndex: 'CHK_DATE', align:'center'},
				{header: "审核状态", dataIndex: 'STATUS', align:'center',renderer:getItemValue},
				{header: "审核说明", dataIndex: 'CHK_REMARK', align:'center'}
				
		      ];
		      
	    
 </script>    
</body>
</html>